/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2024-05-09 11:02:48
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-06-06 10:44:04
 * @FilePath: \ken147258.topayClient\src\api\other\order.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */


import request from "@/utils/request";
import { AxiosPromise } from "axios";

const URL = {
  list: '/platformApi/order/list',
  stat: '/platformApi/order/stat',
  callbackAgain: '/platformApi/order/callbackAgain',
  status: '/platformApi/status',
};

/**
 * 获取菜单表单数据
 *
 * @param id
 */
export function list(data: object): AxiosPromise<any> {
  return request({
    url: URL.list,
    method: "get",
    params: data,
  });
}

export function stat(data: object): AxiosPromise<any> {
  return request({
    url: URL.stat,
    method: "get",
    params: data,
  });
}

export function status(data: object): AxiosPromise<any> {
  return request({
    url: URL.status,
    method: "get",
    params: data,
  });
}

export function callbackAgain(data: object): AxiosPromise<any> {
  return request({
    url: URL.callbackAgain,
    method: "post",
    data: data,
  });
}
